<nav id="navigation">
    <ul>
        <li id="home_navbut" class="navbut <?php make_active("/bg/index.php") ?> "><a href="index.php"><i class="icon-home iconfont"></i>НАЧАЛО</a></li>
        <li id="process_navbut" class="navbut <?php make_active("/bg/process.php") ?>"><a href="process.php"><i class="icon-cog-alt iconfont"></i>ПРОЦЕС</a></li>
        <li id="docs_navbut" class="navbut <?php make_active("/bg/docs.php") ?>"><a href="docs.php"><i class="icon-doc-text iconfont"></i>ДОКУМЕНТИ</a></li>
        <li id="form_navbut" class="navbut <?php make_active("/bg/form.php") ?>"><a href="form.php"><i class="icon-upload-cloud iconfont"></i>ЗАЯВКА</a></li>
        <li id="contacts_navbut" class="navbut <?php make_active("/bg/contacts.php") ?>"><a href="/prices.php">Цени</a></li>
        <li id="contacts_navbut" class="navbut <?php make_active("/bg/contacts.php") ?>"><a href="contacts.php"><i class="icon-users iconfont"></i>КОНТАКТИ</a></li>
    </ul>
</nav>

<?php 

 
function make_active($uri){
    
  if ($_SERVER["REQUEST_URI"] == $uri){ echo "active"; }else{ echo "";} 
  
}


?>
